package com.wyh.domain.dto.groupOne.projectaboutdto.utils;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

@AllArgsConstructor
@NoArgsConstructor
@Data
@ApiModel(value = "新增项目数据 ",description = "building为楼栋,cluster为组团,unit为单元")
public class ProjectAdd {
    /**
     * 上级id
     */
    @NotNull(message = "上级id不能为空")
    @ApiModelProperty(value = "上级id",required = true)
    private Integer parentId;
    /**
     *自身名字
     */
    @Size(max = 15, min = 2, message = "名称2-15字符")
    @ApiModelProperty(value = "自身名字",required = true)
    private String name;
    /**
     *自身类型
     */
    @NotNull(message = "自身不能为空")
    @ApiModelProperty(value = "自身类型houses为楼盘,building为楼栋,cluster为组团,unit为单元",required = true)
    private String type;
    /**
     * 上级类型
     */
    @NotNull(message = "上级类型不能为空")
    @ApiModelProperty(value = "上级类型",required = true)
    private String superType;
}
